package priv.conceit.sc.hoxton.auth.contractor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import priv.conceit.sc.hoxton.auth.contractor.dao.ContractorMapper;
import priv.conceit.sc.hoxton.auth.contractor.service.ContractorService;
import priv.conceit.sc.hoxton.auth.contractor.service.ContractorUserService;
import priv.conceit.sc.hoxton.common.entity.auth.contractor.pojo.Contractor;

import java.util.List;

/**
 * <p>
 * 承包商单位 服务实现类
 * </p>
 *
 * @author conceit
 * @since 2020-11-20
 */
@Service
public class ContractorServiceImpl extends ServiceImpl<ContractorMapper, Contractor> implements ContractorService {

	@Autowired
	private ContractorUserService contractorUserService;

	@Autowired
	private ContractorMapper contractorMapper;

	/**
	 * load 根据用户ids加载对应的承包商单位
	 *
	 * @param userIds
	 * @return java.util.List<priv.conceit.sc.hoxton.common.entity.auth.contractor.pojo.Contractor>
	 * @author conceit
	 * @date 2020/11/26 16:02
	 */
	@Override
	public List<Contractor> load(List<Long> userIds) {

		return contractorMapper.load(userIds);
	}
}
